package edu.spec.dengyan.week05.class1.work1.Extends;

public class Dog extends Animal {


    private String kind;
    private String food;
    private String barkSound;

    public Dog() {

    }

    public Dog(String name, String gender, int age, String kind, String food, String barkSound) {
        super(name, gender, age, food);
	/*this.name=name;
	this.gender=gender;
	this.age=age;*/
        this.kind = kind;
        this.food = food;
        this.barkSound = barkSound;

    }

    public void bark() {
        System.out.println(getName() + "是" + getKind() + "犬，它的" + "叫声像狼。");
    }


    public void suck() {
        System.out.println(getName() + "小时候吃奶。");
    }

    public void find() {
        System.out.println(getKind() + "帮我寻回丢失的东西。");
    }

    public void eatFood() {
        System.out.println(getName() + "吃普通食物。");
    }

    public static void main(String[] args) {
        Dog T = new Dog("阿拉斯加", "雄性", 3, "阿拉斯加", "肉", "狼叫");//"豆豆","雄性",3,"阿拉斯加"
        T.eatFood();
        T.eat();
        T.suck();
        T.bark();
        T.find();
    }


    public String getKind() {
        return this.kind;
    }

    public String getFood() {
        return this.food;
    }

    public String getbarkSound() {
        return this.barkSound;
    }
}
